package com.bristua.order.controller;
import com.bristua.common.bean.Result;
import com.bristua.common.utils.HandleResultUtil;
import com.bristua.order.biz.QueryOrderDetailBiz;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by Administrator on 2019/4/3.
 */
@RestController
@Api(value="查询订单详情",tags={"查询订单详情"})
public class QueryOrderDetailController {
    @Autowired
    private QueryOrderDetailBiz queryOrderDetailBiz;
    @ApiOperation(value="查询订单详情")
    @PostMapping(value="/admin/user/order/detail/{orderId}")
    public Result queryOrderDetail(@PathVariable(value = "orderId") String orderId){
        return HandleResultUtil.querySuccessResult(queryOrderDetailBiz.queryOrderDetail(orderId));
    }
}
